package com.group3.Feign;

import com.group3.config.FeignConfiguration;
import com.group3.model.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value="ls-service-notification", configuration = FeignConfiguration.class)
public interface NotificationFeign {
    @RequestMapping("/products/{pid}")
    public Product getProductByPid(@PathVariable Integer pid);
}
